﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.CLR.Method;
namespace ILRuntime.Runtime.Enviorment
{
    public unsafe struct ILContext
    {
        public AppDomain AppDomain;
        public StackObject* ESP;
        public IList<object> ManagedStack;
        public IMethod Method;
        public ILIntepreter Interpreter;

        internal ILContext(AppDomain domain,ILIntepreter intpreter, StackObject* esp, IList<object> mStack, IMethod method)
        {
            this.AppDomain = domain;
            this.ESP = esp;
            this.ManagedStack = mStack;
            this.Method = method;
            this.Interpreter = intpreter;
        }
    }
}
